package com.lsa.letcode.the71.simplifyPath;

import static org.junit.Assert.*;

import org.junit.Test;

public class SimplifyPathTest {
	@Test
	public void test() {
		Solution s = new Solution();
		assertEquals("/c", s.simplifyPath("/a/./b/../../c/"));
		assertEquals("/test", s.simplifyPath("/test/"));
		assertEquals("/", s.simplifyPath("/../../"));
		assertEquals("/a", s.simplifyPath("/a/b/../b/../"));
		assertEquals("/a/b", s.simplifyPath("/a/b/../b/../b"));
		assertEquals("/", s.simplifyPath("./"));
		assertEquals("/", s.simplifyPath("././././."));
		assertEquals("/", s.simplifyPath("./a/../a/./.."));
		assertEquals("/home/foo", s.simplifyPath("/home/foo/"));
		assertEquals("/home/foo", s.simplifyPath("/home//foo/"));
		assertEquals("/e/f/g", s.simplifyPath("/a/./b///../c/../././../d/..//../e/./f/./g/././//.//h///././/..///"));
	}
}